workspace=/data/home/app100712667/online

if [ ! -e $workspace/audit ]; then
    mkdir $workspace/audit
fi

rm -f $workspace/audit/*
stime=$(date -d "-1 day" +%Y%m%d)
for file in $workspace/*/ssanguo/log/audit/*$stime.log; do
    name=`basename $file`
    cp $file $workspace/audit/
done

scp $workspace/audit/* app100712667@10.190.169.28:online/audit/
